<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <!-- 特性绑定事件处理函数 -->
    <!-- <button onclick="function(){fn()}">保存1</button> -->
    <button onclick="console.log(this); fn();">保存1</button>
    <script>
      // this = window
      const fn = () => {
        console.log(this);
      };
      /*  function fn() {
        // this=window
        console.log(this);
      } */
    </script>
  </body>
</html>
